package xhwl.insurance.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.Toast;


import xhwl.insurance.R;

/**
 * Created by Administrator on 2017/10/17.
 * 选择提问方式
 */

public class PutQuestionsStyleActivity extends Activity implements View.OnClickListener{

    private Intent intent;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏 
        setContentView(R.layout.put_question_style_dialog);
        initView();
    }

    private void initView() {
        ImageView mTuWen=(ImageView)findViewById(R.id.iv_tuwen);
        ImageView mFinish=(ImageView)findViewById(R.id.iv_finish);
        ImageView mYuYin=(ImageView)findViewById(R.id.iv_yuyin);





        mTuWen.setOnClickListener(this);
        mFinish.setOnClickListener(this);
        mYuYin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch(v.getId()){
            case R.id.iv_tuwen:
                intent = new Intent();
                intent.setClass(PutQuestionsStyleActivity.this,PutQuestionsActivity.class);
                startActivity(intent);
                finish();
                break;
            case R.id.iv_finish:
                finish();
                break;
            case R.id.iv_yuyin:
                intent=new Intent();
                intent.setClass(PutQuestionsStyleActivity.this,PutVoiceQuestionsActivity.class);
                startActivity(intent);
                finish();
                break;
            default:
                break;
        }

    }
}
